package com.qf.admin.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.qf.admin.entity.SysUser;
import com.qf.admin.mapper.ISysUserMapper;
import com.qf.admin.service.ISysUserService;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class SysUserServiceImpl implements ISysUserService {

    private ISysUserMapper sysUserMapper;

    public SysUserServiceImpl(ISysUserMapper sysUserMapper) {
        this.sysUserMapper = sysUserMapper;
    }

    @Override
    public List<SysUser> getAllSysUser() {

        Wrapper wrapper = Wrappers.emptyWrapper();

        List<SysUser> sysUserList = sysUserMapper.selectList(wrapper);

        return sysUserList;
    }
}
